home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- cursor(200)
- repeat while the mouseDown
- if (the mouseH < 312) and (the mouseH > 258) then
- puppetSprite(7, 1)
- set the locH of sprite 7 to the mouseH
- updateStage()
- else
- if the mouseH > 312 then
- set the locH of sprite 7 to 312
- updateStage()
- else
- if the mouseH < 258 then
- set the locH of sprite 7 to 258
- updateStage()
- end if
- end if
- end if
- set the volume of sound 2 to integer((the locH of sprite 7 - 258) * (float(256) / float(54)))
- end repeat
- end
-
- on mouseUp
- global niv_sonido2
- cursor(0)
- set niv_sonido2 to integer((the locH of sprite 7 - 258) * (float(256) / float(54)))
- end
-